How to make my JavaScript code unusable by anyone else? [closed]
Posted
by
egasimus
on Stack Overflow
See other posts from Stack Overflow
or by egasimus
Published on 2012-05-11T15:19:36Z
Indexed on
2012/10/02
21:37 UTC
Read the original article
Hit count: 97
Heh, that's something that many plugin authors do without needing help, isn't it? :) Here's the rub -- I'm coding a jQuery plugin which I have the intent to sell. I want to provide a live demo of it; of course, I don't want anyone just using the demo code.
I know it's dumb, and it certainly doesn't bring any good karma, but what are some naughty things I can do in the demo script that would make life reasonably difficult for anyone trying to use it? Setting undefined = true
comes to mind, as well as overriding jQuery methods. Any suggestions beyond that?
© Stack Overflow or respective owner